/*
 *  Description: BOAT XU SOFT FHSS
 *  Version: V1.00
 *  Author: boat xu
 *  Email: xifengzui@outlook.com
 *  Date: 2020-07-03 10:38:03
 *  LastEditTime: 2020-07-16 17:02:04
 */ 


#ifndef __BSF_RAND_H__
#define __BSF_RAND_H__
#include "bsf_types.h"

#define BSF_RAND_WEIGHT 10
#define BSF_RAND_FREQCUTNUM 8
#define BSF_RAND_DEFAULT_SEED   0xA897
#define BSF_RAND_DEFAULT_LOOP_LEN 24
void bsf_rand_init(void);
b_u8_t *bsf_rand_getTable(void);
void bsf_rand_set_default(void);
void bsf_rand_set(b_u16_t seed,b_u8_t *tab);
b_u8_t bsf_rand_Next(void);
void bsf_rand_update(void);
void bsf_rand_loss(b_u8_t freq);
void bsf_rand_recover(void);
extern b_u8_t weight_table[BSF_RAND_FREQCUTNUM];
extern b_u8_t shadow_table[BSF_RAND_FREQCUTNUM];
#endif